#include "stdafx.h"
#include "./mathutils.h"

#define MATHS_PI 3.14159

const float MathUtils::PI = MATHS_PI;
const float MathUtils::AngleToRadian_MagicNum = MATHS_PI / 180.;
const float MathUtils::RadianToAngle_MagicNum = 180. / MATHS_PI;

float MathUtils::AngleToRadian(float angle)
{
	return angle * AngleToRadian_MagicNum;
}

float MathUtils::RadianToAngle(float radian)
{
	return radian * RadianToAngle_MagicNum;
}

float MathUtils::Square(float num)
{
	return num * num;
}